gdk: Make it possible to attach user data to GdkEvents
authorCarlos Garnacho <carlosg@gnome.org>
Thu, 4 May 2017 11:41:29 +0000 (13:41 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Thu, 25 May 2017 14:25:59 +0000 (16:25 +0200)
commit65de0ebea3d2656b75ffcb41fd6ce2be1aaa01a2
tree1957fb5229ef09d206c86ec6795090fe7ec651e5
parent5483b9db2d53c0b9974076475cd98d4606e4b7ee
gdk: Make it possible to attach user data to GdkEvents

As event->any.window is the toplevel, this is not useful anymore to
determine the window/widget that is the target for this event. Add
helper functions to attach user data to GdkEvents so the target
widget can be stored on the gtk/ side.

These calls should be made private with the rest of GdkEvent related
API.
gdk/gdkevents.c
gdk/gdkevents.h
gdk/gdkinternals.h